<?php

namespace App\Http\Controllers\Api\V1;

use App\Models\VipCategory;
use App\Http\Controllers\Api\V1\Resources\VipCatrgroyResource;

class VipCategoriesController extends Controller
{
    public function index()
    {
    	$categories = VipCategory::query()->orderByDesc('id')->get();
        
    	return VipCatrgroyResource::collection($categories);
    }
}
